package com.escape.oss.service;

import com.escape.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: escape_zebra
 * @CreateTime: 2025-01-02  21:38
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class FileService {

    private final StorageAdapter storageAdapter;

    public FileService(StorageAdapter storageAdapter) {
        this.storageAdapter = storageAdapter;
    }

    /**
     * 列出所有桶名
     * @return
     * @throws Exception
     */
    public List<String> getAllBucket(){
        return storageAdapter.getAllBucket();
    };

}
